package com.code.day13;

public class Day13String {
    public static void main(String[] args) {
        String s1 = new String();
        System.out.println("s1="+s1);

        String s2 = new String("你好");
        System.out.println("s2="+s2);
        char[] chars = new char[]{'a','b','3'};
        String s3 = new String(chars);
        System.out.println("s3="+s3);

        byte[] bytes = new byte[]{97,98,99};
        String s4 = new String(bytes);
        System.out.println("s4="+s4);

        byte[] bytes1 = new byte[]{-27,-101,-67};
        String s5 = new String(bytes1);
        System.out.println("s5="+s5);

        String s6 = new String(bytes,0,2);
        System.out.println("s6="+s6);

        String s7 = new String(chars,1,2);
        System.out.println("s7="+s7);
    }


}
